package com.nanmeishu.infrastructure.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 接口响应类
 */
@Data
@ApiModel("接口响应类")
public class ResponseResult<T> {
    private static  ResponseResult responseResult;

    @ApiModelProperty("响应代码")
    private int errcode;
    @ApiModelProperty("响应数据")
    private T data ;
    @ApiModelProperty("响应消息")
    private String errmsg = "";

    private ResponseResult() {
    }

    public static ResponseResult getInstance() {
        return new ResponseResult();
    }
}
